//
//  HSYBaseTableView.m
//  HSY
//
//  Created by 陈浩 on 2017/4/12.
//  Copyright © 2017年 金开门. All rights reserved.
//

#import "HSYBaseTableView.h"

@implementation HSYBaseTableView

- (void)setupMessage:(NSString *)message imageName:(NSString *)imageName{
    self.loadedImageName = imageName;
    self.gzw_contentInset = UIEdgeInsetsMake(64, 0, 0, 0);
    
    NSMutableParagraphStyle *paragraph = [NSMutableParagraphStyle new];
    paragraph.lineSpacing = 15;
    paragraph.lineBreakMode = NSLineBreakByWordWrapping;
    paragraph.alignment = NSTextAlignmentCenter;
    
    NSDictionary *attributes1 = @{NSFontAttributeName: [UIFont systemFontOfSize:17.0f],
                                  NSForegroundColorAttributeName: [UIColor hsyDarkTextColor],
                                  NSParagraphStyleAttributeName: paragraph};
    
    NSAttributedString *str1 = [[NSAttributedString alloc] initWithString:message attributes:attributes1];
    
    NSMutableAttributedString *descriptionAttributedText = [[NSMutableAttributedString alloc] init];
    [descriptionAttributedText appendAttributedString:str1];
    self.descriptionAttributedText = descriptionAttributedText;

}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
